package entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

public class Customer implements Serializable {
    private Integer id;
    private String name;
    private String type;
    private String level;
    private String status;
    private String credit;
    private String area;
    private String company_address;
    private String company_phone;
    private String post_code;
    private String fax_address;
    private String company_website;
    private String license_number;
    private String corporation;
    private Integer annual_sale;
    private String deposit_bank;
    private String bank_account;
    private String land_tax_number;
    private String national_tax_number;
    private String source;
    private String description;
    private String maturity;
    private String document;
    private Integer delete_status;
    private Integer manager_id;
    private Integer product_id;
    private String creator;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date create_time;

    public Customer(){

    }
    public Customer(Integer id, String name, String type, String level, String status, String credit, String area, String company_address, String company_phone, String post_code, String fax_address, String company_website, String license_number, String corporation, Integer annual_sale, String deposit_bank, String bank_account, String land_tax_number, String national_tax_number, String source, String description, String maturity, String document, Integer delete_status, Integer manager_id, Integer product_id, String creator, Date create_time) {
        this.id = id;
        this.name = name;
        this.type = type;
        this.level = level;
        this.status = status;
        this.credit = credit;
        this.area = area;
        this.company_address = company_address;
        this.company_phone = company_phone;
        this.post_code = post_code;
        this.fax_address = fax_address;
        this.company_website = company_website;
        this.license_number = license_number;
        this.corporation = corporation;
        this.annual_sale = annual_sale;
        this.deposit_bank = deposit_bank;
        this.bank_account = bank_account;
        this.land_tax_number = land_tax_number;
        this.national_tax_number = national_tax_number;
        this.source = source;
        this.description = description;
        this.maturity = maturity;
        this.document = document;
        this.delete_status = delete_status;
        this.manager_id = manager_id;
        this.product_id = product_id;
        this.creator = creator;
        this.create_time = create_time;
    }

    @Override
    public String toString() {
        return "Customer{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", type='" + type + '\'' +
                ", level='" + level + '\'' +
                ", status='" + status + '\'' +
                ", credit='" + credit + '\'' +
                ", area='" + area + '\'' +
                ", company_address='" + company_address + '\'' +
                ", company_phone='" + company_phone + '\'' +
                ", post_code='" + post_code + '\'' +
                ", fax_address='" + fax_address + '\'' +
                ", company_website='" + company_website + '\'' +
                ", license_number='" + license_number + '\'' +
                ", corporation='" + corporation + '\'' +
                ", annual_sale=" + annual_sale +
                ", deposit_bank='" + deposit_bank + '\'' +
                ", bank_account='" + bank_account + '\'' +
                ", land_tax_number='" + land_tax_number + '\'' +
                ", national_tax_number='" + national_tax_number + '\'' +
                ", source='" + source + '\'' +
                ", description='" + description + '\'' +
                ", maturity='" + maturity + '\'' +
                ", document='" + document + '\'' +
                ", delete_status=" + delete_status +
                ", manager_id=" + manager_id +
                ", product_id=" + product_id +
                ", creator='" + creator + '\'' +
                ", create_time=" + create_time +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getCredit() {
        return credit;
    }

    public void setCredit(String credit) {
        this.credit = credit;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getCompany_address() {
        return company_address;
    }

    public void setCompany_address(String company_address) {
        this.company_address = company_address;
    }

    public String getCompany_phone() {
        return company_phone;
    }

    public void setCompany_phone(String company_phone) {
        this.company_phone = company_phone;
    }

    public String getPost_code() {
        return post_code;
    }

    public void setPost_code(String post_code) {
        this.post_code = post_code;
    }

    public String getFax_address() {
        return fax_address;
    }

    public void setFax_address(String fax_address) {
        this.fax_address = fax_address;
    }

    public String getCompany_website() {
        return company_website;
    }

    public void setCompany_website(String company_website) {
        this.company_website = company_website;
    }

    public String getLicense_number() {
        return license_number;
    }

    public void setLicense_number(String license_number) {
        this.license_number = license_number;
    }

    public String getCorporation() {
        return corporation;
    }

    public void setCorporation(String corporation) {
        this.corporation = corporation;
    }

    public Integer getAnnual_sale() {
        return annual_sale;
    }

    public void setAnnual_sale(Integer annual_sale) {
        this.annual_sale = annual_sale;
    }

    public String getDeposit_bank() {
        return deposit_bank;
    }

    public void setDeposit_bank(String deposit_bank) {
        this.deposit_bank = deposit_bank;
    }

    public String getBank_account() {
        return bank_account;
    }

    public void setBank_account(String bank_account) {
        this.bank_account = bank_account;
    }

    public String getLand_tax_number() {
        return land_tax_number;
    }

    public void setLand_tax_number(String land_tax_number) {
        this.land_tax_number = land_tax_number;
    }

    public String getNational_tax_number() {
        return national_tax_number;
    }

    public void setNational_tax_number(String national_tax_number) {
        this.national_tax_number = national_tax_number;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getMaturity() {
        return maturity;
    }

    public void setMaturity(String maturity) {
        this.maturity = maturity;
    }

    public String getDocument() {
        return document;
    }

    public void setDocument(String document) {
        this.document = document;
    }

    public Integer getDelete_status() {
        return delete_status;
    }

    public void setDelete_status(Integer delete_status) {
        this.delete_status = delete_status;
    }

    public Integer getManager_id() {
        return manager_id;
    }

    public void setManager_id(Integer manager_id) {
        this.manager_id = manager_id;
    }

    public Integer getProduct_id() {
        return product_id;
    }

    public void setProduct_id(Integer product_id) {
        this.product_id = product_id;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }
}
